<#assign pojo=oneToManyPojo.getOne()>
<#assign many=oneToManyPojo.getMany()>
<#assign ones=oneToManyPojo.getOnes()>
<#assign fields=pojo.getFilterdPojoFields()>
<#assign declarationName = pojo.importType(pojo.getDeclarationName())>
<#assign declarationNameFirstLetterLower = pojo.importType(pojo.getDeclarationNameFirstLetterLower())>
<#assign realPackageAndClassPath = "${pojo.getRealPackageAndClassPath()}">
<#assign masterid = pojo.getDeclarationNameFirstLetterLower()+"Id">
<div ng-controller="${declarationName}DetailController">
    <form role="form" class="form-horizontal" name="Form" id="form1" novalidate>
        <fieldset>
            <legend>100 基本信息</legend>
<#list fields?chunk(2) as row>
            <div class="form-group">
	<#list row as field>
	    <#if field.getIsSampleField()&&field.getIsNotBaseEntiry()>
                <label class="col-sm-2 control-label text-nowrap text-right">
                    <#if field.getComment()?exists>${field.getComment()}<#else>${field.getName()}</#if>
                </label>
                <div class="col-sm-4">
            <#if field.getHtmlType()?exists&&field.getHtmlType()='date'>
                    <p class="input-group">
                        <input type="text" placeholder="请输入<#if field.getComment()?exists>${field.getComment()}<#else>${field.getName()}</#if>" class="form-control" uib-datepicker-popup="yyyy/MM/dd" ng-model="current${declarationName}.${field.getName()}" close-text="Close" is-open="current${declarationName}_${field.getName()}_startOpened" ng-init="current${declarationName}_${field.getName()}_startOpened = false"  ng-click="current${declarationName}_${field.getName()}_startOpened=!current${declarationName}_${field.getName()}_startOpened"/>
                        <span class="input-group-btn">
                            <button type="button" class="btn btn-default" ng-click="current${declarationName}_${field.getName()}_startOpened=!current${declarationName}_${field.getName()}_startOpened">
                                <i class="glyphicon glyphicon-calendar"></i>
                            </button>
                        </span>
                    </p>
            <#else>
                    <input class="form-control" ng-model="current${declarationName}.${field.getName()}">
            </#if>
                </div>
		</#if>
	</#list>
            </div>
</#list>
        </fieldset>
        <fieldset>
            <center>
                <button class="btn btn-primary" ng-click="save${declarationName}()">保存</button>
                <button class="btn btn-primary btn-o" ng-click="cancel${declarationName}()">重置</button>
                <button class="btn btn-primary btn-o" ng-click="cancel${declarationName}()">返回</button>
            </center>
        </fieldset>
    </form>
</div>